<template>
  <div id="view-admin">
    <Aside :title="asideAttrs.title" :menuItems="asideAttrs.menuItems">
      <router-view></router-view>
    </Aside>
  </div>
</template>

<script>
import Aside from "../../components/aside/aside";
export default {
  name: "Admin",
  components: {
    Aside,
  },
  data() {
    return {
      asideAttrs: {
        title: "Admin",
        menuItems: [
          {
            iconType: "edit",
            iconTheme: "filled",
            name: "Check",
            link: "/admin/check",
          },
          {
            iconType: "dashboard",
            iconTheme: "filled",
            name: "Dashboard",
            link: "/admin/dashboard",
          },
          {
            iconType: "setting",
            iconTheme: "filled",
            name: "Setting",
            link: "/admin/setting",
          },
        ],
      },
      approveAttrs: {
        text: "as",
      },
    };
  },
};
</script>

<style lang="less" scope>
.center() {
  align-items: center;
  justify-content: center;
}

#view-admin {
  width: 100%;
  height: 100%;
}
</style>